﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E25 RID: 3621
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RestartChallengePhaseScRsp : IMessage<RestartChallengePhaseScRsp>, IMessage, IEquatable<RestartChallengePhaseScRsp>, IDeepCloneable<RestartChallengePhaseScRsp>, IBufferMessage
	{
		// Token: 0x17002E05 RID: 11781
		// (get) Token: 0x0600A29C RID: 41628 RVA: 0x001B3021 File Offset: 0x001B1221
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RestartChallengePhaseScRsp> Parser
		{
			get
			{
				return RestartChallengePhaseScRsp._parser;
			}
		}

		// Token: 0x17002E06 RID: 11782
		// (get) Token: 0x0600A29D RID: 41629 RVA: 0x001B3028 File Offset: 0x001B1228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RestartChallengePhaseScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E07 RID: 11783
		// (get) Token: 0x0600A29E RID: 41630 RVA: 0x001B303A File Offset: 0x001B123A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RestartChallengePhaseScRsp.Descriptor;
			}
		}

		// Token: 0x0600A29F RID: 41631 RVA: 0x001B3041 File Offset: 0x001B1241
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RestartChallengePhaseScRsp()
		{
		}

		// Token: 0x0600A2A0 RID: 41632 RVA: 0x001B304C File Offset: 0x001B124C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RestartChallengePhaseScRsp(RestartChallengePhaseScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A2A1 RID: 41633 RVA: 0x001B3098 File Offset: 0x001B1298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RestartChallengePhaseScRsp Clone()
		{
			return new RestartChallengePhaseScRsp(this);
		}

		// Token: 0x17002E08 RID: 11784
		// (get) Token: 0x0600A2A2 RID: 41634 RVA: 0x001B30A0 File Offset: 0x001B12A0
		// (set) Token: 0x0600A2A3 RID: 41635 RVA: 0x001B30A8 File Offset: 0x001B12A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002E09 RID: 11785
		// (get) Token: 0x0600A2A4 RID: 41636 RVA: 0x001B30B1 File Offset: 0x001B12B1
		// (set) Token: 0x0600A2A5 RID: 41637 RVA: 0x001B30B9 File Offset: 0x001B12B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x0600A2A6 RID: 41638 RVA: 0x001B30C2 File Offset: 0x001B12C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RestartChallengePhaseScRsp);
		}

		// Token: 0x0600A2A7 RID: 41639 RVA: 0x001B30D0 File Offset: 0x001B12D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RestartChallengePhaseScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Scene, other.Scene) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A2A8 RID: 41640 RVA: 0x001B3120 File Offset: 0x001B1320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A2A9 RID: 41641 RVA: 0x001B3175 File Offset: 0x001B1375
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A2AA RID: 41642 RVA: 0x001B317D File Offset: 0x001B137D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A2AB RID: 41643 RVA: 0x001B3188 File Offset: 0x001B1388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Scene);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A2AC RID: 41644 RVA: 0x001B31E4 File Offset: 0x001B13E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A2AD RID: 41645 RVA: 0x001B323C File Offset: 0x001B143C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RestartChallengePhaseScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A2AE RID: 41646 RVA: 0x001B32A4 File Offset: 0x001B14A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A2AF RID: 41647 RVA: 0x001B32B0 File Offset: 0x001B14B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					if (num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003ECA RID: 16074
		private static readonly MessageParser<RestartChallengePhaseScRsp> _parser = new MessageParser<RestartChallengePhaseScRsp>(() => new RestartChallengePhaseScRsp());

		// Token: 0x04003ECB RID: 16075
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003ECC RID: 16076
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04003ECD RID: 16077
		private uint retcode_;

		// Token: 0x04003ECE RID: 16078
		public const int SceneFieldNumber = 14;

		// Token: 0x04003ECF RID: 16079
		private SceneInfo scene_;
	}
}
